package com.aorise.mapper.system;

import com.aorise.model.system.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 系统配置mybatis接口类
* @Date:Created in 2019-05-28
* @Modified By:
*/
@Mapper
@Component(value = "sysConfigMapper")
public interface SysConfigMapper {
    /**
     * @Author:cat
     * @Description 根据类别查询系统配置信息
     * @params: map 查询条件Map
     * @Date:2019-05-28
     * @Return: List<SysConfigModel> 系统配置集合
     * @Modified By:
     */
    List<SysConfigModel> getSysConfig(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据类别或主键修改系统配置信息
     * @params: sysConfigEditVO 系统配置信息
     * @Date:2019-05-28
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer updateSysConfig(SysConfigEditVO sysConfigEditVO) throws DataAccessException;

}